package lab02.test06;

public class Ladder {
    //属性：上底、下底、高、面积
    double up;
    double down;
    double high;
    double area;
    //行为：返回面积
    double getArea(){
        return (up+down)*high/2;
    }
}
